<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'main_body.jsp' starting page</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<STYLE type="text/css">
		body{
			color:#333;
		}
		#text_user{
			margin-left:25px;
		}
		#text_user span{
			color: #333;
		}
		#bulletinBoard{
			/*border:1px solid #aaa;*/
			width:450px;
			height: 300px;
			margin-left:15px;
			overflow: auto;
			/*float: left;*/
		}
		#title{
				margin-top:15px;
			}
	</STYLE>

  </head>
  <body>
    <div id="main">
    			<div id="title">
				<h3>Welcome</h3><hr /></div>
				<div id="text_user">
					Hi~&nbsp;&nbsp;
					<span><a href="searchPersonInformationSystem.action"><s:property value="#session.SESSION_USERNAME"/></a></span>&nbsp;
					(<s:property value="#session.SESSION_USERTYPE"/>)&nbsp;
				</div>
				<div>
				<div id="bulletinBoard"><h4><s:text name="system.display.bulletin.board" /></h4>
				<s:if test="#request.searchsuccess != null ">
					<table>
						<s:iterator  value="#request.allBulletinList">
						<tr>
							<td><a href="detailBulletinBoardSystem.action?id=<s:property value="id" />"><s:property value="title"/></a></td>
							<td><s:property value="username"/></td>
							<td><s:property value="uploadDate"/></td>
						</tr>
					</s:iterator>	
					</table>
				</s:if>
				<s:if test="#request.detailbulletinboardsuccess != null ">
					<table>
						<tr><td>Title:</td><td><s:property value="#request.detailbb.title"  /></td></tr>
						<tr><td>User:</td><td><s:property value="#request.detailbb.username"  /></td></tr>
						<tr><td>Date:</td><td><s:property value="#request.detailbb.uploadDate"  /></td></tr>
						<tr><td>Body:</td><td><s:textarea value="%{#request.detailbb.body}" readonly="true" rows="6" /></td></tr>
						
					</table>
				</s:if>
				</div>
		<!--  	<div id="downloadBoard">downloadBoard</div>-->	
				</div>
				
			
				<br>
			</div>
  </body>
</html>
